package com.tedu.account.service.impl;

import com.tedu.account.mapper.ExpendMapper;
import com.tedu.account.pojo.dto.ExpendQuery;
import com.tedu.account.pojo.vo.ExpendVO;
import com.tedu.account.service.ExpendService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Slf4j
@Service
public class ExpendServiceImpl implements ExpendService {
    @Autowired
    ExpendMapper expendMapper;

    @Override
    public List<ExpendVO> selectExpend(ExpendQuery expendQuery) {
        log.debug("查询支出业务，参数={}",expendQuery);
        System.out.println(expendQuery.getUsername());
        List<ExpendVO> ExpendList= expendMapper.selectExpend(expendQuery);
        return ExpendList;
    }
}
